import React, { Component } from 'react'

export default class Form extends Component {



  render() {
    return (
      <div>
        <input type="text" ref="txt" />
        <button onClick={()=>this.props.search(this.refs.txt.value)}>查询</button>
        <button onClick={()=>this.props.add()}>添加</button>
      </div>
    )
  }
}
